package cn.liumouren.jzxd.service;

import cn.liumouren.jzxd.common.utils.PageUtils;
import cn.liumouren.jzxd.entity.Comment;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 
 *
 * @author Freeman Liu
 * @email llw599502537@gmail.com
 * @date 2020-10-30 16:28:20
 */
public interface CommentService extends IService<Comment> {

    PageUtils queryPage(Map<String, Object> params);

    IPage<Comment> getPageCommentByZoneId(String zoneId, int cur, int size);

    int getCommentCount(String zoneId);

    IPage<Comment> getMainComment(String zoneId, int cur, int size);

    IPage<Comment> getCommentedComment(String zoneId, String replyUserId, int cur, int size);
}

